package com.qfedu.service;

import com.qfedu.dao.ListSongDao;
import com.qfedu.entity.ListSong;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhang
 * @Title: commonValidateAdd
 * @date : 2022/2/25 15:05
 */
@Service
public class ListSongServiceImpl implements ListSongService{

    @Autowired
    private ListSongDao listSongDao;

    @Override
    public List<ListSong> findAllListSong(int songListId) {
        return listSongDao.findAllListSong(songListId);
    }

    @Override
    public int deleteListSong(ListSong listSong) {
        return listSongDao.deleteListSong(listSong);
    }

    @Override
    public int addListSong(ListSong listSong) {
        return listSongDao.addListSong(listSong);
    }
}
